﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using EveMarketsDAO;

namespace EveMarkets.Views
{
	/// <summary>
	/// Logique d'interaction pour Acceuil.xaml
	/// </summary>
	public partial class Acceuil : Page
	{
		public Acceuil()
		{
			InitializeComponent();
		}

		private void btnQuitter_Click(object sender, RoutedEventArgs e)
		{
			ContexteDAO.SupprimerContexte();
			Application.Current.Shutdown();
		}

		private void btnMarkets_Click(object sender, RoutedEventArgs e)
		{
			framePrincipale.Source = new Uri(@"Markets.xaml",UriKind.Relative);
		}

		private void btnUpdateMarket_Click(object sender, RoutedEventArgs e)
		{
			framePrincipale.Source = new Uri(@"UpdateMarket.xaml",UriKind.Relative);
		}

		private void button1_Click(object sender, RoutedEventArgs e)
		{
			framePrincipale.Source = new Uri(@"Calculateur.xaml",UriKind.Relative);
		}

		private void btnProfil_Click(object sender, RoutedEventArgs e)
		{
			framePrincipale.Source = new Uri(@"Profil.xaml",UriKind.Relative);
		}

		private void button1_Click_1(object sender, RoutedEventArgs e)
		{
			framePrincipale.Source = new Uri(@"PageTest.xaml",UriKind.Relative);
		}
	}
}
